home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
BASIC
/
LIB
/
EVENTSHELL
/
APPBUILD
/
!AppBuild
/
NewApp
/
!RunImage
(
.txt
)
< prev
next >
Wrap
RISC OS BBC BASIC V Source
|
1996-01-28
|
4KB
|
94 lines
> <@@@@@@@@@$Dir>.!@@@@@@@@@
"Hourglass_Smash":
$;" at line "+
"<EvntShell$Path>ShellLibRT"
shell_FatalError
"Hourglass_On"
"Wimp_SlotSize",-1,-1
progsize%
pagesize%=1<<10
freespace%=&8000+progsize%
=freespace%+pagesize%
=freespace%
shell_HeapManagerInit("<EvntShell$Path>",freespace%)
shell_Init
-------------------- Load extension libraries -----------------------
Load the extension libraries as follows (assuming library is called
'MyLib'
LIBRARY "<EvntShell$Path>Extensions.MyLib" )
void% = FN_shell_MyLib_Init
-------------------- Initialise Wimp and Resources ------------------
/task%=
shell_WimpInit_I( 200, "@@@@@@@@@" )
Uncomment the next two lines to enable debug tracing with ShellDBug..
PROCshell_TraceInit( "" )
PROCshell_TraceOn
shell_ResourcesInit
app_init
-------------------- Initialise Variables ----------------------------
&G_closedown% =
Set this to TRUE when you want the program to
'! :
-------------------- Miscelleanous Initialisation --------------------
"Hourglass_Off"
shell_Error
shell_Action(
shell_Poll_I( 0, task% ) )
_closedown%
This is for the EvntEditor, uncomment to save the files needed
by !EvntEdit
PROCshell_EvntSave_AllEvnts( "<@@@@@@@@@$Dir>.EvntData" )
PROCshell_MenuList_SaveList( "<@@@@@@@@@$Dir>.Menus" )
shell_Exit
======================================================================
app_init
SetUp_Windows
SetUp_Menus
SetUp_IconBar
===== Menu_Setup routines ======================================
SetUp_Menus
void%
G\MenuHandle_IconBar% =
shell_MenuNew(
shell_MessageNoArgs( "MTIBar" ), "Menu_IBar", 3 )
HQMenuItem_Info% =
shell_MenuAdd( 0,
shell_MessageNoArgs( "Info" ), "" )
Iavoid% =
shell_MenuAdd( 0,
shell_MessageNoArgs ("Quit" ), "_MenuSelect_Quit" )
shell_AttachMenuDBox( MenuItem_Info%, "progInfo", "_PreOpenInfo", "" )
===== Window_SetUp routines ====================================
SetUp_Windows
shell_CreateWindowStatic( "mainw", mainw% )
===== IconBar_SetUp routines ===================================
SetUp_IconBar
Y^sicon=
shell_Iconbar( -1, "!" +
shell_GetAppName, "", 120, MenuHandle_IconBar%, 0, 0, 0 )
shell_AttachHelpTag( -1, sicon, "iconbar" )
shell_AttachClickSelect( -1, sicon, "_ClickSelect_IconBar" )
===== Dialog_PreOpen routines ==================================
_PreOpenInfo( window_handle% )
shell_IconPutData( window_handle%, 0,
shell_MessageNoArgs( "progInfo0" ), 0 )
shell_IconPutData( window_handle%, 1,
shell_MessageNoArgs( "progInfo1" ), 0 )
shell_IconPutData( window_handle%, 2,
shell_MessageNoArgs( "progInfo2" ), 0 )
shell_IconPutData( window_handle%, 3,
shell_MessageNoArgs( "progInfo3" ), 0 )
===== Dialog_PostOpen routines =================================
===== Click_Select routines ====================================
_ClickSelect_IconBar(wh%,icon%)
shell_OpenWindowStatic(mainw%)
===== Click_Adjust routines ====================================
===== Menu_Select routines =====================================
_MenuSelect_Quit(blk%)
_closedown%=
===== Menu_Warning routines ====================================
===== Data_Load routines =======================================
===== Data_Save routines =======================================
===== User application routines ================================
================= End Of User Application ======================